//调用会员列表接口
import {memberList } from '../request/api'
const state = {
    memberlist:[]
}
const getters = {
    getMemberList(state) {
        return state.memberlist
    }
}
const mutations = {
    REQ_MEMBER(state, payload) {
        state.memberlist=payload
    }
}
const actions = {
    getMemberAction({ commit }) {
        memberList().then(res => {
            commit('REQ_MEMBER',res.list)
        })
    }
}
export default {
    state,
    getters,
    mutations,
    actions,
    namespaced:true
}